<div class="centre">
{if isset($smarty.session.id_user)}
{* Le client est connecté. *}

<div>Nom : {$smarty.session.nom}</div>
<div>Prenom : {$smarty.session.prenom}</div>
<div>Mail : {$smarty.session.mail}</div>
<a href="index.php?page=compte&logout">Deconnexion</a>


{else}
{* le client n'est pas connecté. *}

<div id="connexion" >
		<div id="login">
			<form  action="index.php?page=compte" method="POST" autocomplete="on"> 
				<h1>Identification</h1> 
				<p> 
					<label for="username"> Votre identifiant </label>
					<input id="username" name="username" required="required" type="text" placeholder="Votre email"/></br>
					<label for="password"> Mot de passe</label>
					<input id="password" name="password" required="required" type="password" placeholder="" /> </br>
					<!--<input type="checkbox" name="loginkeeping" id="loginkeeping" value="loginkeeping" />
					<label for="loginkeeping">Rester connecté</label></br>-->
					<input type="submit" name="submit_login" value="Continuer" /> 
				</p>
			</form>
		</div>

		<div id="register" class="animate form">
			<form  action="index.php?page=compte" method="POST" autocomplete="on"> 
				<h1> Inscription </h1> 
				<p> 
					<label for="emailsignup"> Votre email</label>
					<input id="emailsignup" name="emailsignup" required="required" type="email" placeholder=""/> </br>
					<label for="passwordsignup">Mot de passe </label>
					<input id="passwordsignup" name="passwordsignup" required="required" type="password" placeholder=""/></br>
					<label for="passwordsignup_confirm">Confirmer votre mot de passe</label>
					<input id="passwordsignup_confirm" name="passwordsignup_confirm" required="required" type="password"/></br>
					<input type="submit" name="submit_register" value="Enregistrer"/> </br> 
				</p>
			</form>
		</div>
		
</div>  




{/if}
</div>